<template>
  <div class="dataOverview" id="dataOverview" :class="{ active: isView === 1 }">
    <div class="data_item flex">
      <div>
        <div>学员总数</div>
        <div class="data_num">2347</div>
      </div>
      <img class="data_bg" src="../assets/svg/student.svg" alt="" />
    </div>
    <div class="data_item flex items_center">
      <div class="line"></div>
      <div>
        <div>计划总数</div>
        <div class="data_num">56</div>
      </div>
      <img class="data_bg" src="../assets/svg/plan.svg" alt="" />
    </div>
    <div class="data_item flex items_center">
      <div class="line"></div>
      <div>
        <div>完课率</div>
        <div class="data_num">78.5%</div>
      </div>
      <img class="data_bg" src="../assets/svg/finish.svg" alt="" />
    </div>
  </div>
</template>
<script>
export default {
  props: {
    isView: {
      type: Number,
      default: 0,
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>
<style scoped lang="less">
.flex {
  display: flex;
}
.items_center {
  align-items: center;
}
.dataOverview {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: #fff;
  border: 1px solid #e5e6eb;
  padding: 24px;
  &.active {
    background: rgba(242, 250, 255, 0.2);
    border: 1px solid rgba(0, 147, 255, 0.1) !important;
    border-radius: 4px;
  }
}
.data_item {
  position: relative;
  flex: 1;
}
.line {
  width: 1px;
  height: 40px;
  background-color: #e7e7e7;
  margin-right: 24px;
  margin-top: 5px;
}
.data_num {
  font-family: "HarmonyOS Sans SC";
  font-style: normal;
  font-weight: 500;
  font-size: 26px;
  line-height: 34px;
}
.data_bg {
  position: absolute;
  bottom: -32px;
  right: 30px;
  width: 78px;
  height: 66px;
}
</style>
